home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 22 / PCPP #22.iso / Quake2 / q2source_12_11 / utils3 / qe4 / glingr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-05  |  2.5 KB  |  77 lines

  1. // This .h file contains constants, typedefs, etc. for Intergraph
  2. // extensions to OpenGL.  These extensions are:
  3. //    
  4. //            Multiple Palette Extension
  5. //            Texture Object Extension
  6.  
  7. #define GL_INGR_multiple_palette        1
  8. #define GL_EXT_texture_object           1
  9.  
  10.  
  11. // New constants and typedefs for the Multiple Palette Extension
  12. #define GL_PALETTE_INGR                 0x80c0
  13. #define GL_MAX_PALETTES_INGR            0x80c1
  14. #define GL_MAX_PALETTE_ENTRIES_INGR     0x80c2
  15. #define GL_CURRENT_PALETTE_INGR         0x80c3
  16. #define GL_PALETTE_WRITEMASK_INGR       0x80c4
  17. #define GL_CURRENT_RASTER_PALETTE_INGR    0x80c5
  18. #define GL_PALETTE_CLEAR_VALUE_INGR    0x80c6
  19.  
  20. // Function prototypes for the Multiple Palette Extension routines
  21. typedef void (APIENTRY *PALETTEFUNCPTR)(GLuint);
  22. typedef void (APIENTRY *PALETTEMASKFUNCPTR)(GLboolean);
  23. typedef void (APIENTRY *WGLLOADPALETTEFUNCPTR)(GLuint, GLsizei, GLuint *);
  24. typedef void (APIENTRY *CLEARPALETTEFUNCPTR)(GLuint);
  25.  
  26.  
  27. // New Constants and typedefs for the Texture Object Extension
  28. #define GL_TEXTURE_PRIORITY_EXT         0x8066
  29. #define GL_TEXTURE_RESIDENT_EXT         0x8067
  30. #define GL_TEXTURE_1D_BINDING_EXT       0x8068
  31. #define GL_TEXTURE_2D_BINDING_EXT       0x8069
  32.  
  33. // Function prototypes for the Texture Object Extension routines
  34. typedef GLboolean (APIENTRY *ARETEXRESFUNCPTR)(GLsizei, const GLuint *,
  35.                     const GLboolean *);
  36. typedef void (APIENTRY *BINDTEXFUNCPTR)(GLenum, GLuint);
  37. typedef void (APIENTRY *DELTEXFUNCPTR)(GLsizei, const GLuint *);
  38. typedef void (APIENTRY *GENTEXFUNCPTR)(GLsizei, GLuint *);
  39. typedef GLboolean (APIENTRY *ISTEXFUNCPTR)(GLuint);
  40. typedef void (APIENTRY *PRIORTEXFUNCPTR)(GLsizei, const GLuint *,
  41.                     const GLclampf *);
  42.  
  43.  
  44. /* OpenGL ExtEscape escape function constants */
  45. #ifndef OPENGL_GETINFO
  46. #define OPENGL_GETINFO  4353        /* for OpenGL ExtEscape */
  47. #endif
  48.  
  49. // OPENGL_GETINFO ExtEscape sub-escape numbers.  They are defined by
  50. // Microsoft.
  51.  
  52. #ifndef OPENGL_GETINFO_DRVNAME
  53.  
  54. #define OPENGL_GETINFO_DRVNAME  0
  55.  
  56.  
  57. // Input structure for OPENGL_GETINFO ExtEscape.
  58.  
  59. typedef struct _OPENGLGETINFO
  60. {
  61.     ULONG   ulSubEsc;
  62. } OPENGLGETINFO, *POPENGLGETINFO;
  63.  
  64.  
  65. // Output structure for OPENGL_GETINFO_DRVNAME ExtEscape.
  66.  
  67. typedef struct _GLDRVNAMERET
  68. {
  69.     ULONG   ulVersion;              // must be 1 for this version
  70.     ULONG   ulDriverVersion;        // driver specific version number
  71.     WCHAR   awch[MAX_PATH+1];
  72. } GLDRVNAMERET, *PGLDRVNAMERET;
  73.  
  74. #endif
  75.  
  76.  
  77.